package com.spar.openprojects.shared.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.spar.openprojects.shared.ETimeProject;
import com.sql.database.IRowMapper;

public class ETimeProjectRowMapper implements IRowMapper {

	@Override
	public ETimeProject mapRow(ResultSet rs) throws SQLException {
		ETimeProject eTimeProject = new ETimeProject();
		eTimeProject.setNumber(rs.getInt("project_id"));
		eTimeProject.setInternalDays(rs.getInt("time"));
		return eTimeProject;
	}

}
